<include file="Public:header"/>
<script type="text/javascript" src="../Public/js/swiper.min.js"></script>

<section class="clearfix header">
	<h1><a href="{:U('/')}">米律</a></h1>
	<empty name="user_id">
		<div class="extra">
			<a href="{:U('Login/index')}">登录</a>
		</div>
	</empty>
</section>
<div class="search_box">
	<img src="{:img($banner_img, 750, 272)}"/>
	<div class="inner">
		<p>米律，创业法律护航者</p>
		<form class="search-form" action="{:U('free_agreement/search')}" method="get" target="_blank">
			<input class="keyword" name="keyword" type="text" placeholder="请输入合同名称，例如：合伙协议">
			<button class="if if-search btn-search" type="submit">创建</button>
		</form>
	</div>
</div>

<section class="bd">
	<div class="block block_free">
		<div class="title">
			<h2>创业，你需要的合同</h2>
			<a class="link_more" href="{:U('FreeAgreement/index')}">更多</a>
		</div>
		<div class="content">
			<ul class="clearfix index_list">
				<volist name="entrepreneurial_list" id="rs">
					<li>
						<a href="{$rs['open_url']}">
							<div class="thumb"><img src="{:img($rs['images_url'], 100, 100)}" alt="" /></div>
							<h4>{$rs['title']}</h4>
							<p>{$rs['description']}</p>
						</a>
					</li>
				</volist>
			</ul>
		</div>
	</div>
	<div class="block">
		<div class="title">
			<h2>专项创业法律服务</h2>
		</div>
		<div class="content">
			<ul class="clearfix index_list">
				<volist name="special_agreement_list" id="rs">
					<li>
						<a href="{:U('CustomAgreement/detail', array('agreement_id' => $rs['agreement_id']))}">
							<div class="thumb"><img src="{:img($rs['icon_url'], 100, 100)}" alt=""></div>
							<h4>{$rs['title']}</h4>
							<p>{:nl2br(str_cut($rs['description'], 64))}</p>
						</a>
					</li>
				</volist>
			</ul>
		</div>
	</div>
	<div class="block">
		<div class="title">
			<h2>定制合同</h2>
		</div>
		<div class="content">
			<ul class="clearfix index_list">
				<volist name="custom_agreement_list" id="rs">
					<li>
						<a href="{:U('CustomAgreement/detail', array('agreement_id' => $rs['agreement_id']))}">
							<div class="thumb"><img src="{:img($rs['icon_url'], 100, 100)}" alt=""></div>
							<h4>{$rs['title']}</h4>
							<p>{:nl2br(str_cut($rs['description'], 64))}</p>
						</a>
					</li>
				</volist>
			</ul>
		</div>
	</div>
</section>

<include file="Public:footer"/>